<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>搜索结果</title>
    <link rel="stylesheet" href="/public/static/css/wangeditor.css">
    <link rel="stylesheet" href="/public/static/css/view.css">
    <link rel="stylesheet" href="/public/static/css/layui.css">
    <link rel="stylesheet" href="/public/static/css/out.css">
    <script src="/public/static/js/jquery.js"></script>
    <script src="/public/static/js/jsrender.js"></script>
    <script src="/public/static/js/layui.js"></script>
</head>

<body>
<div class="main">
    <?php view('common/header'); ?>
    <div class="col-sm-9 col-xs-12" id="postsdetail" style="margin-top: 75px;">
        <div id="demo-laypage-normal-1">
            <div class="post-list">
                <h2><?=$data['textname']?></a></h2>
                <div class="flex">
                    <p class="date"><i class="layui-icon layui-icon-time"></i> &nbsp; <?=$data['created']?></p>
                    <p class="print"></p>
                    <p> <i class="layui-icon layui-icon-username"></i> &nbsp;创建者:&nbsp; <span class="creator"><?=$data['creator']?></span></p>
                </div>

                <div class="post-detail-content">
                    <?=$data['main']?>
                    <br>
                    <br>
                    <?php if(!empty($data['file'])):?>
                    获取附件：<br>
                        <?php foreach($data['file'] as $file):?>
                            <a href="<?=$file['file_url']?>" download="<?=$file['file_name']?>"><?=$file['file_name']?></a><br>
                        <?php endforeach;?>
                    <?php endif;?>
                </div>
            </div>
        </div>
    </div>
</div>

<?php view('common/footer'); ?>
</body>
</html>